package com.baizhi.cmfz.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.druid.support.monitor.annotation.MTable;

import java.io.Serializable;


//上师
public class Guru implements Serializable {

    /**
     * 定义属性和Excel中列的映射关系
     * name : 该属性导出之后在Excel文件中的列名是什么
     */
    @Excel(name = "编号")
    private  Integer guruId;//上师id
    @Excel(name = "名字")
    private  String guruName;//上师名字
    /**
     * type:该字段类型为图片
     * imageType:=1（默认不可以不填） 表示从file读取 以文件的形式 数据库中保存的是文件路径
     */
    @Excel(name = "图片",type = 2,width = 40,height = 60,imageType = 1)
    private  String guruImage;//上师图片
    @Excel(name = "法名")
    private  String guruNickName;//法名
    /**
     * replace: 值的替换  在导出的时候 0会导出为正常 1导出为冻结
     */
    @Excel(name = "状态",replace = {"冻结_1","正常_0"})
    private  Integer guruStatus;//上师状态

    @Override
    public String toString() {
        return "Guru{" +
                "guruId=" + guruId +
                ", guruName='" + guruName + '\'' +
                ", guruImage='" + guruImage + '\'' +
                ", guruNickName='" + guruNickName + '\'' +
                ", guruStatus=" + guruStatus +
                '}';
    }

    public Guru(Integer guruId, String guruName, String guruImage, String guruNickName, Integer guruStatus) {
        this.guruId = guruId;
        this.guruName = guruName;
        this.guruImage = guruImage;
        this.guruNickName = guruNickName;
        this.guruStatus = guruStatus;
    }

    public Guru() {
    }

    public Integer getGuruId() {
        return guruId;
    }

    public void setGuruId(Integer guruId) {
        this.guruId = guruId;
    }

    public String getGuruName() {
        return guruName;
    }

    public void setGuruName(String guruName) {
        this.guruName = guruName;
    }

    public String getGuruImage() {
        return guruImage;
    }

    public void setGuruImage(String guruImage) {
        this.guruImage = guruImage;
    }

    public String getGuruNickName() {
        return guruNickName;
    }

    public void setGuruNickName(String guruNickName) {
        this.guruNickName = guruNickName;
    }

    public Integer getGuruStatus() {
        return guruStatus;
    }

    public void setGuruStatus(Integer guruStatus) {
        this.guruStatus = guruStatus;
    }
}
